package br.com.rsrpp.domain.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name="img") 
public class IMG {
	
	private int id_img;
	private String url;
	private boolean aprovada;
	
	public IMG() {
		super();
	}

	public IMG(String url, boolean aprovada) {
		super();
		this.url = url;
		this.aprovada = aprovada;
	}

	@Id
	@GeneratedValue//	HIBERNATE PRECISA DE UM ID. SE QUISER QUE SEJA IDENTITY VEJA @Generated
	@Column(name="id_img")
	public int getId_img() {
		return id_img;
	}
	public void setId_img(int id_img) {
		this.id_img = id_img;
	}
	
	@Column(name="url")
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}

	@Column(name="aprovada")
	public boolean isAprovada() {
		return aprovada;
	}
	public void setAprovada(boolean aprovada) {
		this.aprovada = aprovada;
	}
}
